package com.gdut.simple.contract;

import com.gdut.simple.basic.IPresenter;
import com.gdut.simple.basic.IView;
import com.gdut.simple.data.entity.Post;
import com.gdut.simple.data.entity.User;

import java.util.List;

public interface PostContract {

    interface View extends IView<Presenter> {

        User getUser();

        List<Post> getItemList();

        void reset();

        void refreshList();

        void showRefreshProgress();

        void hideRefreshProgress();
    }

    interface Presenter extends IPresenter {

        void refresh();

        void loadMore(int page);
    }

}
